package com.lanqiao.gxnushop.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.sql.Date;

@Schema(description ="订单表")
@Data
public class Orders
{
    @Schema(description = "唯一标识订单")
    private String orderId;

    @Schema(description = "关联 stores 表，标识订单的店铺")
    private String storeId;

    @Schema(description = "关联商品")
    private String productId;

    @Schema(description = "关联 buyer")
    private String buyerId;

    @Schema(description = "关联addressId地址")
    private String addressId;

    @Schema(description = "商品数量")
    private String quantity;

    @Schema(description = "订单总金额")
    private String totalAmount;

    @Schema(description = "订单状态（如 \"0待发货\"、\"1已发货\"、\"2已完成\"）")
    private String state;

    @Schema(description = "订单创建时间")
    private String zcsj;
}
